package com.study.service;

import com.study.dao.UserDao;
import com.study.entity.User;
import com.study.util.BeanFactory;
import lombok.Data;

/**
 * @Author chenyeqing
 * @Date 2021/9/13 20:46
 */
@Data
public class UserServiceImpl implements UserService {

    UserDao userDao;


    @Override
    public void register(User user) {
        userDao.register(user);
    }

    @Override
    public void login(String name, String password) {
        userDao.login(name, password);
    }
}
